package arith;

import java.util.Random;

public class MultFrac implements Operation {
	
	private Problem prob = null;
	
	public MultFrac(){
		prob = new Problem("<frac> times <frac>");
	}
	
	public MultFrac(Problem prob1){
		Random randomGenerator = new Random();
		int r = randomGenerator.nextInt(2);
		if(r == 0){
			prob = new Problem("("+prob1.getTemplate()+") times <frac>");
		}else{
			prob = new Problem("<frac> times ("+prob1.getTemplate()+")");
		}
	}
	
	public MultFrac(Problem prob1, Problem prob2){
		prob = new Problem("("+prob1.getTemplate()+") times ("+prob2.getTemplate()+")");
	}
	
	public Problem getProblem() {
		return prob;
	}
	
}